﻿namespace Qzb.MicroService.Common.ConsulExtensions.Register
{
    public class ConsulRegisterOptions : ConsulOptions
    {
        /// <summary>
        /// 服务IP
        /// </summary>
        public string? ServiceIP { get; set; }

        /// <summary>
        /// 服务Port
        /// </summary>
        public int ServicePort { get; set; }

        /// <summary>
        /// 服务名
        /// </summary>
        public string? ServiceName { get; set; }

        /// <summary>
        /// 心跳检查地址
        /// </summary>
        public string? HealthCheckApiPath { get; set; }

        /// <summary>
        /// 心跳频率（秒）
        /// </summary>
        public int? Interval { get; set; }

        /// <summary>
        /// 心跳超时（秒）
        /// </summary>
        public int? Timeout { get; set; }

        /// <summary>
        /// 移除延迟时间（秒）
        /// </summary>
        public int? DeregisterCriticalServiceAfter { get; set; }

        /// <summary>
        /// 标签，额外信息，用于权重
        /// </summary>
        public string? Tag { get; set; }
    }
}
